{{ header }}
<div class="container">
  <h1>{{ heading_title }}<small>{{ text_step_2 }}</small></h1>
  {% if error_warning %}
  {% for warning in error_warning %}
  <div class="alert alert-danger alert-dismissible"><i class="icon-warning"></i> {{ warning }}
    <button type="button" class="close" data-dismiss="alert">&times;</button>
  </div>
  {% endfor %}
  {% endif %}
  <form action="{{ action }}" method="post" enctype="multipart/form-data">
    <h3>{{ text_install_php }}</h3>
    <fieldset>
      <table class="table">
        <thead>
          <tr>
            <td width="35%"><b>{{ text_setting }}</b></td>
            <td width="25%"><b>{{ text_current }}</b></td>
            <td width="25%"><b>{{ text_required }}</b></td>
            <td width="15%" align="right"><b>{{ text_status }}</b></td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>{{ text_version }}</td>
            <td>{{ php_version }}</td>
            <td>5.4+</td>
            <td align="right">{% if php_version >= '5.4' %}
              <span class="text-success"><i class="icon-checkmark"></i></span>
              {% else %}
              <span class="text-danger"><i class="icon-cross"></i></span>
              {% endif %}</td>
          </tr>
          <tr>
            <td>{{ text_global }}</td>
            <td>{% if register_globals %}
              {{ text_on }}
              {% else %}
              {{ text_off }}
              {% endif %}</td>
            <td>{{ text_off }}</td>
            <td align="right">{% if not register_globals %}
              <span class="text-success"><i class="icon-checkmark"></i></span>
              {% else %}
              <span class="text-danger"><i class="icon-cross"></i></span>
              {% endif %}</td>
          </tr>
          <tr>
            <td>{{ text_magic }}</td>
            <td>{% if magic_quotes_gpc %}
              {{ text_on }}
              {% else %}
              {{ text_off }}
              {% endif %}</td>
            <td>{{ text_off }}</td>
            <td align="right">{% if not error_magic_quotes_gpc %}
              <span class="text-success"><i class="icon-checkmark"></i></span>
              {% else %}
              <span class="text-danger"><i class="icon-cross"></i></span>
              {% endif %}</td>
          </tr>
          <tr>
            <td>{{ text_file_upload }}</td>
            <td>{% if file_uploads %}
              {{ text_on }}
              {% else %}
              {{ text_off }}
              {% endif %}</td>
            <td>{{ text_on }}</td>
            <td align="right">{% if file_uploads %}
              <span class="text-success"><i class="icon-checkmark"></i></span>
              {% else %}
              <span class="text-danger"><i class="icon-cross"></i></span>
              {% endif %}</td>
          </tr>
          <tr>
            <td>{{ text_session }}</td>
            <td>{% if session_auto_start %}
              {{ text_on }}
              {% else %}
              {{ text_off }}
              {% endif %}</td>
            <td>{{ text_off }}</td>
            <td align="right">{% if not session_auto_start %}
              <span class="text-success"><i class="icon-checkmark"></i></span>
              {% else %}
              <span class="text-danger"><i class="icon-cross"></i></span>
              {% endif %}</td>
          </tr>
        </tbody>
      </table>
    </fieldset>
    <h3>{{ text_install_extension }}</h3>
    <fieldset>
      <table class="table">
        <thead>
          <tr>
            <td width="35%"><b>{{ text_extension }}</b></td>
            <td width="25%"><b>{{ text_current }}</b></td>
            <td width="25%"><b>{{ text_required }}</b></td>
            <td width="15%" align="right"><b>{{ text_status }}</b></td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>{{ text_db }}</td>
            <td>{% if db %}
              {{ text_on }}
              {% else %}
              {{ text_off }}
              {% endif %}</td>
            <td>{{ text_on }}</td>
            <td align="right">{% if db %}
              <span class="text-success"><i class="icon-checkmark"></i></span>
              {% else %}
              <span class="text-danger"><i class="icon-cross"></i></span>
              {% endif %}</td>
          </tr>
          <tr>
            <td>{{ text_gd }}</td>
            <td>{% if gd %}
              {{ text_on }}
              {% else %}
              {{ text_off }}
              {% endif %}</td>
            <td>{{ text_on }}</td>
            <td align="right">{% if gd %}
              <span class="text-success"><i class="icon-checkmark"></i></span>
              {% else %}
              <span class="text-danger"><i class="icon-cross"></i></span>
              {% endif %}</td>
          </tr>
          <tr>
            <td>{{ text_curl }}</td>
            <td>{% if curl %}
              {{ text_on }}
              {% else %}
              {{ text_off }}
              {% endif %}</td>
            <td>{{ text_on }}</td>
            <td align="right">{% if curl %}
              <span class="text-success"><i class="icon-checkmark"></i></span>
              {% else %}
              <span class="text-danger"><i class="icon-cross"></i></span>
              {% endif %}</td>
          </tr>
          <tr>
            <td>{{ text_openssl }}</td>
            <td>{% if openssl %}
              {{ text_on }}
              {% else %}
              {{ text_off }}
              {% endif %}</td>
            <td>{{ text_on }}</td>
            <td align="right">{% if openssl %}
              <span class="text-success"><i class="icon-checkmark"></i></span>
              {% else %}
              <span class="text-danger"><i class="icon-cross"></i></span>
              {% endif %}</td>
          </tr>
          <tr>
            <td>{{ text_zlib }}</td>
            <td>{% if zlib %}
              {{ text_on }}
              {% else %}
              {{ text_off }}
              {% endif %}</td>
            <td>{{ text_on }}</td>
            <td align="right">{% if zlib %}
              <span class="text-success"><i class="icon-checkmark"></i></span>
              {% else %}
              <span class="text-danger"><i class="icon-cross"></i></span>
              {% endif %}</td>
          </tr>
          <tr>
            <td>{{ text_zip }}</td>
            <td>{% if zip %}
              {{ text_on }}
              {% else %}
              {{ text_off }}
              {% endif %}</td>
            <td>{{ text_on }}</td>
            <td align="right">{% if zip %}
              <span class="text-success"><i class="icon-checkmark"></i></span>
              {% else %}
              <span class="text-danger"><i class="icon-cross"></i></span>
              {% endif %}</td>
          </tr>
          {% if not iconv %}
          <tr>
            <td>{{ text_mbstring }}</td>
            <td>{% if mbstring %}
              {{ text_on }}
              {% else %}
              {{ text_off }}
              {% endif %}</td>
            <td>{{ text_on }}</td>
            <td align="right">{% if mbstring %}
              <span class="text-success"><i class="icon-checkmark"></i></span>
              {% else %}
              <span class="text-danger"><i class="icon-cross"></i></span>
              {% endif %}</td>
          </tr>
          {% endif %}
        </tbody>
      </table>
    </fieldset>
    <h3>{{ text_install_file }}</h3>
    <fieldset>
      <table class="table">
        <thead>
          <tr>
            <td><b>{{ text_file }}</b></td>
            <td align="right"><b>{{ text_status }}</b></td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>{{ catalog_config }}</td>
            <td align="right">{% if not error_catalog_config %}
              <span class="text-success">{{ text_writable }}</span>
              {% else %}
              <span class="text-danger">{{ error_catalog_config }}</span>
              {% endif %}</td>
          </tr>
          <tr>
            <td>{{ admin_config }}</td>
            <td align="right">{% if not error_admin_config %}
              <span class="text-success">{{ text_writable }}</span>
              {% else %}
              <span class="text-danger">{{ error_admin_config }}</span>
              {% endif %}</td>
          </tr>
        </tbody>
      </table>
    </fieldset>
    <h3>{{ text_install_directory }}</h3>
    <fieldset>
      <table class="table">
        <thead>
          <tr>
            <td align="left"><b>{{ text_directory }}</b></td>
            <td align="right"><b>{{ text_status }}</b></td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>{{ image }}/</td>
            <td align="right">{% if not error_image %}
              <span class="text-success">{{ text_writable }}</span>
              {% else %}
              <span class="text-danger">{{ error_image }}</span>
              {% endif %}</td>
          </tr>
          <tr>
            <td>{{ image_cache }}/</td>
            <td align="right">{% if not error_image_cache %}
              <span class="text-success">{{ text_writable }}</span>
              {% else %}
              <span class="text-danger">{{ error_image_cache }}</span>
              {% endif %}</td>
          </tr>
          <tr>
            <td>{{ image_catalog }}/</td>
            <td align="right">{% if not error_image_catalog %}
              <span class="text-success">{{ text_writable }}</span>
              {% else %}
              <span class="text-danger">{{ error_image_catalog }}</span>
              {% endif %}</td>
          </tr>
          <tr>
            <td>{{ cache }}/</td>
            <td align="right">{% if not error_cache %}
              <span class="text-success">{{ text_writable }}</span>
              {% else %}
              <span class="text-danger">{{ error_cache }}</span>
              {% endif %}</td>
          </tr>
          <tr>
            <td>{{ logs }}/</td>
            <td align="right">{% if not error_logs %}
              <span class="text-success">{{ text_writable }}</span>
              {% else %}
              <span class="text-danger">{{ error_logs }}</span>
              {% endif %}</td>
          </tr>
          <tr>
            <td>{{ download }}/</td>
            <td align="right">{% if not error_download %}
              <span class="text-success">{{ text_writable }}</span>
              {% else %}
              <span class="text-danger">{{ error_download }}</span>
              {% endif %}</td>
          </tr>
          <tr>
            <td>{{ upload }}/</td>
            <td align="right">{% if not error_upload %}
              <span class="text-success">{{ text_writable }}</span>
              {% else %}
              <span class="text-danger">{{ error_upload }}</span>
              {% endif %}</td>
          </tr>
          <tr>
            <td>{{ modification }}/</td>
            <td align="right">{% if not error_modification %}
              <span class="text-success">{{ text_writable }}</span>
              {% else %}
              <span class="text-danger">{{ error_modification }}</span>
              {% endif %}</td>
          </tr>
        </tbody>
      </table>
    </fieldset>
    <div class="buttons">
      <div class="pull-left"><a href="{{ back }}" class="btn btn-danger">{{ button_back }}</a></div>
      <div class="pull-right">
        <input type="submit" value="{{ button_continue }}" class="btn btn-success" />
      </div>
    </div>
  </form>
</div>
{{ footer }}
